package com.siyu.builder;

/**
 * @Author: siyu
 * @CreateTime: 2024-10-06
 * @Version: 1.0
 */
public class CourseBuilder {

    private final Course course = new Course();

    public CourseBuilder addName(String name){
        course.setName(name);
        return this;
    }
    public CourseBuilder addPpt(String name){
        course.setPpt(name);
        return this;
    }
    public CourseBuilder addVideo(String name){
        course.setVideo(name);
        return this;
    }
    public CourseBuilder addHomework(String name){
        course.setHomework(name);
        return this;
    }

    public Course builder(){
        return course;
    }
}
